*{
  margin: 0;
  padding: 0;
}
div, ul, p, li {
  box-sizing: border-box;
}
ul,ol{
  list-style: none;
}
a{
  text-decoration: none;
}
i,em{
  font-style: normal;
}

html,body{
  width: 100%;
  height: 100%;
  background-color: #f6f6f6;
}


/* 网页头部 */
header{
  height: 160px;
  background-color: #fff;
  
  .header-wrap{
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    position: relative;
    // border: 1px solid black;
    .back-index{
      float: left;
      overflow: hidden;
      width: 257px;
      height: 100%;
      // margin-top: 5px;
      padding: 0 20px;  
      margin-right: 95px;
      a{
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        .logo{
          img{
            width: 75px;
            height: 75px;
          }
        }
      }
    }

    .search{
      float: left;
      width: 534px;
      height: 100%;
      display: flex;
      align-items: center;
      
      
      .s-wrap{
        width: 100%;
        height: 46px;
        display: flex;
        align-items: center;
        border: 2px solid #222;
        border-radius: 34px;
        margin-bottom: 15px;
        padding-right: 2px;

        span{
          font-size: 24px !important;
          margin: 0 14px;
          color: #877a73;
        }
        input{
        flex: 1;
        height: 100%;
        border: none;
        font-size: 16px;
        outline: none;
        }

        a{
          width: 135px;
          height: 37PX;
          line-height: 37px;
          text-align: center;
          font-size: 16px;
          background-color: #fee44e;
          border-radius: 34px;
          margin-right: 2px;
          cursor: pointer;
        }
        .s-history{
          display: none;
        }
      }
    } 
    
    
    .tips{
      float: right;
      width: 312px;
      height: 100%;
      display: flex;
      align-items: center;
      padding-left: 28px;
      li{
        width: 78px;
        height: 60px;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;

        img{
          width: 40px;
          height: 40px;
        }

        span{
          font-size: 13px;
          color: #877a73;
        }
      }
    }
      // 用户信息 
  .usermsg{
    width: 200px;
    height: 80px;
    position: absolute;
    right: -135px;
    top: 38px;
    
 
    .msgwrap{
      width: 200px;
      height: 80px;
      position: absolute;
      padding: 20px;
      background: linear-gradient(90deg, #e7f5ff, #afdcff);
      >div{
        width: 60px;
        color: #fff;
        text-align: center;
        cursor: pointer;
        height: 40px;
        line-height: 40px;
        background: hotpink;
        opacity: .8;
      }
      .register{
        float: left;
      }
      .login{
        float: right;
      }
    }
    ol{
      width: 200px;
      height: 80px;
      background: linear-gradient(90deg, #fffffe, #f7bf83);
      position: absolute;
     line-height: 80px;
   
    }
    p{
      color: red;
      height: 40px;
      font-size: 13px;
      float: left;
      
    }
    span{
      display: block;
      width: 60px;
      height: 40px;
      font-size: 12px;
      cursor: pointer;
      float: right;
    }
    
  }
  }

}



/* 导航区域 */
.nav{
  width: 100%;
  height: 47px;
  background-color: #43240c;
  
  .nav-wrap{
    width: 1200px;
    height: 100%;
    margin: 0 auto;

    ul{
      display: flex;

      .active{
        background-color: #fee44e;
        color: #43240c;
      }

      >li{
        color: #fff;
        width: 166px;
        text-align: center;
        line-height: 47px;
        font-size: 16px;
        cursor: pointer;

        &:nth-child(1){
          width: 220px;
        }

        &:hover{
          background-color: #fee44e;
        color: #43240c;
        }
      }
    }
  }
}

/* 主要内容区域 */
.main{
  width: 100%;
  height: 370px;

  .main-warp{
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;

    .shop-list{
      width: 220px;
      height: 100%;
      background-color: #fcf9e3;
      position: relative;

      >ul{
        width: 100%;
        height: 100%;
        font-size: 14px;
        color: #43200c;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;

        >li{
          width: 100%;
          height: 41px;
          line-height: 41px;
          text-align: center;
          cursor: pointer;
          position: relative;
          &:hover{
            background-color: #fff;
          }
          
          img{
            margin-top: 0;
            position: absolute;
            top: 30%;
            left: 50px;
          }
          p{
            display: inline-block;
            &:hover{
              color: red;
            }
          }
        }
      }

      .list-hidden{
        width: 223px;
        height: 100%;
        padding: 21px 22px;
        position: absolute;
        left: 220px;
        top: 0;
        background-color: #fff;
        display: none;

        div{
          width: 100%;
          text-align: left;
          margin-bottom: 15px;

          h5{ 
            padding-bottom: 7px;
            margin-bottom: 7px;
            line-height: 17px;
            border-bottom: 1px solid #e7e7ee;
            color: rgb(192, 176, 176);
            font-size: 15px;
          }
  
          ul{
            overflow: hidden;
            li{
              margin: 5px 4px;
              height: 17px;
              font-size: 12px;
              color: rgb(192, 176, 176);
              width: auto;
              line-height: 17px;
              float: left;
              cursor: pointer;
              &:hover{
                color: red;
              }
            }
          }
        }
        
      }
    }
// banner区域
    .banner{
      width: 660px;
      height: 100%;

      .top{
        width: 100%;
        height: 235px;
        margin-bottom: 8px;
        img{
          width: 100%;
          height: 100%;
        }
      }

      .bottom{
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between;

        div{
          width: 325px;
          height: 128px;
          border-radius: 18px;
          cursor: pointer;
          padding: 26px 34px 16px 34px;
          position: relative;
          overflow: hidden;
          color: #fff;

          &:hover{
            box-shadow: 2px 2px 12px 0 #d8d8d8;
          }

          h3{
            font-size: 22px;
            font-weight: 600;
          }

          p{
            font-size: 18px;
          }
          .span-btn{
            display: block;
            width: 47px;
            height: 20px;
            line-height: 20px;
            margin-top: 11px;
            font-size: 14px;
            text-align: center;
            border-radius: 10px;
            background: #fff;
          }
          
          img{
            position: absolute;
            bottom: 0;
            right: 0;
            width: 125px;
            height: 125px;
          }

          
        }

        .b-left{
          background: linear-gradient(270deg,#ffd1dd,#fca6c0);

          .span-btn{
            color: #fca6c0;
          }
        }
        .b-right{
          background: linear-gradient(270deg,#fffffe,#fec07e);

          .span-btn{
            color: #fec07e;
          }
        }
      }
    }

    // 热卖商品和下载链接
    .right{
      width: 296px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .hot-shop{
        width: 100%;
        height: 234px;
        background-color: #fff4e4;
        position: relative;
        cursor: pointer;
        
        h3{
          color: #ff5817;
          position: absolute;
          left: 13px;
          top: 32px;
          font-style: 24px;
          z-index: 1;
        }

        .prompt{
          position: absolute;
          z-index: 1;
          font-size: 18px;
          color: #fff;
          padding: 0 47px 0 23px;
          line-height: 36px;
          top: 76px;
          left: 0;
          background: url('../static/image/prompt.png') no-repeat 50%/cover;
        }

        img{
          position: absolute;
          right: 20px;
          bottom: 10px;
          height: 134px;
        }
      }

      .download{
        width: 100%;
        height: 128px;
        border-radius: 8px;
        background: linear-gradient(270deg,#e7f5ff,#afdcff);
        position: relative;
        overflow: hidden;
        color: #fff;
        padding: 38px 0 0 34px;
        &:hover{
          box-shadow: 2px 2px 12px 0 #d8d8d8;
        }

        p{
          width: 108px;
          font-size: 18px;
          i{
            line-height: 24px;
          }
        }

        div{
          width: 100px;
          height: 100px;
          background: #afdcff;
          padding: 8px;
          border-radius: 15px;
          position: absolute;
          right: 20px;
          top: 14px;
          cursor: pointer;
          img{
            width: 84px;
            height: 84px;
          }
        }
      }
    }
  }
}

/* 每日精选 */
.daily-show{
  width: 100%;
  height: 100%;
  margin-top: 10px;
  margin-bottom: 146px;
  position: relative;
  .title{
    width: 1200px;
    height: 57px;
    margin: 0 auto;
    padding-left: 52px;
    background: #fff;
    line-height: 57px;

    h4{
      display: inline-block;
      color: #222;
      font-style: 18px;
      font-weight: 500;
    }

    p{
      display: inline-block;
      font-size: 14px;
      color: #877a73;
      margin-left: 30px;
    }
  }

  .show-list{
    width: 1168px;

    margin: 0 auto;
    margin-top: 20px;
    

    .show-item{
      width: 276px;
      height: 389px;
      margin: 0 21px 21px 0;
      cursor: pointer;
      transition: all .3s;
      float: left;
      
      &:nth-child(4n+4){
        margin-right: 0;
      }

      .show-img{
        img{
          width: 276px;
          height: 276px;
        }
      }

      .show-msg{
        padding: 10px 17px 17px 17px;

        .show-title{
          overflow: hidden;
          font-size: 14px;
          line-height: 18px;
          white-space: nowrap; // 元素内的空白默认忽略
          text-overflow: ellipsis; // 超出文本显示为省略号
          color: #877a73;
        }

        .show-keyword{
          margin: 16px auto 0;
          position: relative;
          height: 20px;

          .keyword{
            float: left;
            margin: 0 6px 0 0;
            padding: 0 6px;
            line-height: 20px;
            font-size: 14px;
            color: #ff9000;
            vertical-align: middle;
            border-radius: 2px;
            box-shadow: inset 0 0 0 1px #ff9000;
          }

          .taobao{
            height: 20px;
            line-height: 20px;
            padding: 0 5px;
            background-color: #f40;
            color: #fff;
            border-radius: 2px;
            font-size: 14px;
            text-align: center;
            float: left; // 为什么要加浮动才能拿居中呢
          }

          .free-postage{
            font-size: 14px;
            text-align: center;
            color: #877a73;
            position: absolute;
            right: 0;
            box-shadow: none;
          }
        }

        .show-foot{
          margin-top: 14px;
          height: 28px;
          text-align: left;
          position: relative;

          .left{
            .price{
              color: #fa585a;
              font-weight: 400px;
             
              >span{
                display: inline-block;
              }
              .price-tag{
                font-size: 12px;
                line-height: 12px;
              }

              .price-strong{
                font-size: 28px;
                line-height: 28px;
                
              }

              .digit{
                font-size: 18px;
                line-height: 20px;
              }
            }
          }

          .sale-num{
            display: inline-block;
            line-height: 20px;
            font-size: 14px;
            color: #877a73;
          }
        }

        .coupon-value{
          position: absolute;
          bottom: 1px;
          right: 0;
          width: 50px;
          font-size: 12px;
          color: #fa585a;
          border-radius: 2px;
          text-align: center;
          box-shadow: inset 0 0 0 1px #fa585a;
        }
      }
    }
  }
  .more-msg{

    width: 249px;
    height: 70px;
    line-height: 70px;
    border-radius: 35px;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin: 0 auto;
    background: #fee44e;
    color: #43240c;
    cursor: pointer;
  }
}

/* 回到顶部 */
.back-top{
  cursor: pointer;
  position: fixed;
  right: 50px;
  bottom: 155px;
  display: none;
  img{
    width: 60px;
    height: 60px;
  }
}


/* 页脚 */
